from celery import Celery


app = Celery('tasks', backend='rpc://', broker='pyamqp://')
app.config_from_object('mycelery.config')


app.autodiscover_tasks(['mycelery.sms'])


# 执行celery
# celery -A mycelery.main worker --loglevel=info


